package com.example.demo.controller;

import com.example.demo.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.beans.factory.config.ConfigurableBeanFactory;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.List;

@Controller
public class UserController {
//    @Value("${mystring}")
//    private String mystring;
//
//    @Value("${mystring2}")
//    private String mystring2;
//
//    @Value("${mystring3}")
//    private String mystring3;
//
//    @Value("${myyml.string}")
//    private String port;

//    @Autowired
//    private Student student;
    @Resource
    private ListConfig listConfig;

    @RequestMapping("/user")
    @ResponseBody
    public String sayHi(){
        return "hello world! | student: " + listConfig;
    }
}
